 <?php include('session.php'); include('MatarSessionInactiva.php');?>
<!DOCTYPE html>
<html>
  <head>
  	<script type="text/javascript" language="javascript" src="js/ajax.js"></script> 
  	<script type="text/javascript" language="javascript" src="js/JQuery.js"></script>
  </head>
  <body>
  	
		<?php 
		include('../Model/ModelConexion.php');
		$idcarrera=$_GET['id'];

        $conexion = new Conexion();

        $consulta_grado = $conexion->Consulta("
        SELECT gradosacademicos.codigoGrado as Codigo,
		gradosacademicos.nombre as Nombre
		FROM gradosacademicos
		WHERE gradosacademicos.codigoCarr = '$idcarrera'
        ");   
		?>
		<br>
		<form name="form2">
			<select name="gradosAcademicos" id="gradosAcademicos" onchange="from2(document.form2.gradosAcademicos.value,'midiv1','Verdetalles.php')">
			<?php
				while($Lista_Grados=$conexion->Arreglo($consulta_grado)) 
			    {
			    echo "<option value=".$Lista_Grados['Codigo'].">".$Lista_Grados['Nombre']."</option>\n"; 
			    
			    }
			    // 
			    ?>
			</select>
			

		</form>
		
			 <div id="midiv1">
                          
             </div>
	
	
	<div>
	
	</div>
  </body>
</html>